<%-- 
    Document   : Login
    Created on : May 23, 2013, 11:49:16 AM
    Author     : Hue
--%>
<%@page language="java" extends="com.absisgroup.nsc.users.LogonAction"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>
<html style="height:100%">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Nam Thành</title>
        <link rel="stylesheet" type="text/css" href="styles/portal.css" />
    </head>
    <body text="#666666" link="007AA5" vlink="007AA5" alink="007AA5" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="height:100%">
        <table width="100%" height="100%" border="1" cellpadding="10" cellspacing="0">
            <tr>
                <td align="center" valign="middle">
                    <table width="440" height="272" border="0" cellpadding="0" cellspacing="0" background="images/login.gif">
                        <tr><td>&nbsp;</td></tr>
                        <tr><td class="BigTitre">Nam Thành</td></tr>
                        <tr>
                            <td align="center" valign="top">
                                <form name="loginForm" method="post">
                                    <table border="0" cellspacing="0" cellpadding="3">                
                                        <tr> 
                                            <td width="100">&nbsp</td>
                                            <td align="right" class="WhiteNormalText">Login </td>
                                            <td><input type="text" name="userLogon" class="ChampsForm" size="25" maxlength="50"/></td>
                                        </tr>
                                        <tr> 
                                            <td>&nbsp;</td>
                                            <td align="right" class="WhiteNormalText">Password</td>
                                            <td><input type="password" name="userPassword" class="ChampsForm" size="25" maxlength="50"/></td>
                                        </tr>                
                                        <tr> 
                                            <td colspan='3'>&nbsp;</td>                  
                                        </tr>
                                        <tr> 
                                            <td colspan='3'>&nbsp;</td>                  
                                        </tr>
                                        <tr> 
                                            <td colspan='2'>&nbsp;</td>
                                            <td align="right"><input name="Submit" type="submit" class="ButtonRed" value=" OK " style="cursor:pointer">
                                                &nbsp;<input name="btExit" type="button" onclick="window.close();" class="ButtonRed" value="  Cancel  " style="cursor:pointer">
                                            </td>
                                        </tr>                
                                    </table>
                                </form>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <script language="JavaScript">
            <logic:present name="login.invalid">
                alert("<bean:message key="LOGIN.INVALID_PASSWORD"/>");
            </logic:present>
            <logic:present name="login.inactive">
                alert("<bean:message key="LOGIN.ACCOUNT_INACTIVE"/>")
            </logic:present>
        </script>
    </body>
</html>
